home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXTFElement.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  15KB  |  396 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXTFElement.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXTFElement_h__
  6. #define __gen_nsIXTFElement_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAtom; /* forward declaration */
  18.  
  19. class nsIDOMDocument; /* forward declaration */
  20.  
  21. class nsIDOMElement; /* forward declaration */
  22.  
  23. class nsIDOMNode; /* forward declaration */
  24.  
  25. class nsIDOMEvent; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsIXTFElement */
  29. #define NS_IXTFELEMENT_IID_STR "a8b607fd-24b6-4a8c-9a89-d9b24f8e2592"
  30.  
  31. #define NS_IXTFELEMENT_IID \
  32.   {0xa8b607fd, 0x24b6, 0x4a8c, \
  33.     { 0x9a, 0x89, 0xd9, 0xb2, 0x4f, 0x8e, 0x25, 0x92 }}
  34.  
  35. class NS_NO_VTABLE nsIXTFElement : public nsISupports {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXTFELEMENT_IID)
  39.  
  40.   /* void onDestroyed (); */
  41.   NS_IMETHOD OnDestroyed(void) = 0;
  42.  
  43.   enum { ELEMENT_TYPE_GENERIC_ELEMENT = 0U };
  44.  
  45.   enum { ELEMENT_TYPE_SVG_VISUAL = 1U };
  46.  
  47.   enum { ELEMENT_TYPE_XML_VISUAL = 2U };
  48.  
  49.   enum { ELEMENT_TYPE_XUL_VISUAL = 3U };
  50.  
  51.   enum { ELEMENT_TYPE_BINDABLE = 4U };
  52.  
  53.   /* readonly attribute unsigned long elementType; */
  54.   NS_IMETHOD GetElementType(PRUint32 *aElementType) = 0;
  55.  
  56.   /* readonly attribute boolean isAttributeHandler; */
  57.   NS_IMETHOD GetIsAttributeHandler(PRBool *aIsAttributeHandler) = 0;
  58.  
  59.   /* void getScriptingInterfaces (out unsigned long count, [array, size_is (count), retval] out nsIIDPtr array); */
  60.   NS_IMETHOD GetScriptingInterfaces(PRUint32 *count, nsIID * **array) = 0;
  61.  
  62.   enum { NOTIFY_WILL_CHANGE_DOCUMENT = 1U };
  63.  
  64.   enum { NOTIFY_DOCUMENT_CHANGED = 2U };
  65.  
  66.   enum { NOTIFY_WILL_CHANGE_PARENT = 4U };
  67.  
  68.   enum { NOTIFY_PARENT_CHANGED = 8U };
  69.  
  70.   enum { NOTIFY_WILL_INSERT_CHILD = 16U };
  71.  
  72.   enum { NOTIFY_CHILD_INSERTED = 32U };
  73.  
  74.   enum { NOTIFY_WILL_APPEND_CHILD = 64U };
  75.  
  76.   enum { NOTIFY_CHILD_APPENDED = 128U };
  77.  
  78.   enum { NOTIFY_WILL_REMOVE_CHILD = 256U };
  79.  
  80.   enum { NOTIFY_CHILD_REMOVED = 512U };
  81.  
  82.   enum { NOTIFY_WILL_SET_ATTRIBUTE = 1024U };
  83.  
  84.   enum { NOTIFY_ATTRIBUTE_SET = 2048U };
  85.  
  86.   enum { NOTIFY_WILL_REMOVE_ATTRIBUTE = 4096U };
  87.  
  88.   enum { NOTIFY_ATTRIBUTE_REMOVED = 8192U };
  89.  
  90.   enum { NOTIFY_BEGIN_ADDING_CHILDREN = 16384U };
  91.  
  92.   enum { NOTIFY_DONE_ADDING_CHILDREN = 32768U };
  93.  
  94.   enum { NOTIFY_HANDLE_DEFAULT = 65536U };
  95.  
  96.   /* void willChangeDocument (in nsIDOMDocument newDoc); */
  97.   NS_IMETHOD WillChangeDocument(nsIDOMDocument *newDoc) = 0;
  98.  
  99.   /* void documentChanged (in nsIDOMDocument newDoc); */
  100.   NS_IMETHOD DocumentChanged(nsIDOMDocument *newDoc) = 0;
  101.  
  102.   /* void willChangeParent (in nsIDOMElement newParent); */
  103.   NS_IMETHOD WillChangeParent(nsIDOMElement *newParent) = 0;
  104.  
  105.   /* void parentChanged (in nsIDOMElement newParent); */
  106.   NS_IMETHOD ParentChanged(nsIDOMElement *newParent) = 0;
  107.  
  108.   /* void willInsertChild (in nsIDOMNode child, in unsigned long index); */
  109.   NS_IMETHOD WillInsertChild(nsIDOMNode *child, PRUint32 index) = 0;
  110.  
  111.   /* void childInserted (in nsIDOMNode child, in unsigned long index); */
  112.   NS_IMETHOD ChildInserted(nsIDOMNode *child, PRUint32 index) = 0;
  113.  
  114.   /* void willAppendChild (in nsIDOMNode child); */
  115.   NS_IMETHOD WillAppendChild(nsIDOMNode *child) = 0;
  116.  
  117.   /* void childAppended (in nsIDOMNode child); */
  118.   NS_IMETHOD ChildAppended(nsIDOMNode *child) = 0;
  119.  
  120.   /* void willRemoveChild (in unsigned long index); */
  121.   NS_IMETHOD WillRemoveChild(PRUint32 index) = 0;
  122.  
  123.   /* void childRemoved (in unsigned long index); */
  124.   NS_IMETHOD ChildRemoved(PRUint32 index) = 0;
  125.  
  126.   /* void willSetAttribute (in nsIAtom name, in AString newValue); */
  127.   NS_IMETHOD WillSetAttribute(nsIAtom *name, const nsAString & newValue) = 0;
  128.  
  129.   /* void attributeSet (in nsIAtom name, in AString newValue); */
  130.   NS_IMETHOD AttributeSet(nsIAtom *name, const nsAString & newValue) = 0;
  131.  
  132.   /* void willRemoveAttribute (in nsIAtom name); */
  133.   NS_IMETHOD WillRemoveAttribute(nsIAtom *name) = 0;
  134.  
  135.   /* void attributeRemoved (in nsIAtom name); */
  136.   NS_IMETHOD AttributeRemoved(nsIAtom *name) = 0;
  137.  
  138.   /* void beginAddingChildren (); */
  139.   NS_IMETHOD BeginAddingChildren(void) = 0;
  140.  
  141.   /* void doneAddingChildren (); */
  142.   NS_IMETHOD DoneAddingChildren(void) = 0;
  143.  
  144.   /* boolean handleDefault (in nsIDOMEvent aEvent); */
  145.   NS_IMETHOD HandleDefault(nsIDOMEvent *aEvent, PRBool *_retval) = 0;
  146.  
  147.   /* void cloneState (in nsIDOMElement aElement); */
  148.   NS_IMETHOD CloneState(nsIDOMElement *aElement) = 0;
  149.  
  150. };
  151.  
  152. /* Use this macro when declaring classes that implement this interface. */
  153. #define NS_DECL_NSIXTFELEMENT \
  154.   NS_IMETHOD OnDestroyed(void); \
  155.   NS_IMETHOD GetElementType(PRUint32 *aElementType); \
  156.   NS_IMETHOD GetIsAttributeHandler(PRBool *aIsAttributeHandler); \
  157.   NS_IMETHOD GetScriptingInterfaces(PRUint32 *count, nsIID * **array); \
  158.   NS_IMETHOD WillChangeDocument(nsIDOMDocument *newDoc); \
  159.   NS_IMETHOD DocumentChanged(nsIDOMDocument *newDoc); \
  160.   NS_IMETHOD WillChangeParent(nsIDOMElement *newParent); \
  161.   NS_IMETHOD ParentChanged(nsIDOMElement *newParent); \
  162.   NS_IMETHOD WillInsertChild(nsIDOMNode *child, PRUint32 index); \
  163.   NS_IMETHOD ChildInserted(nsIDOMNode *child, PRUint32 index); \
  164.   NS_IMETHOD WillAppendChild(nsIDOMNode *child); \
  165.   NS_IMETHOD ChildAppended(nsIDOMNode *child); \
  166.   NS_IMETHOD WillRemoveChild(PRUint32 index); \
  167.   NS_IMETHOD ChildRemoved(PRUint32 index); \
  168.   NS_IMETHOD WillSetAttribute(nsIAtom *name, const nsAString & newValue); \
  169.   NS_IMETHOD AttributeSet(nsIAtom *name, const nsAString & newValue); \
  170.   NS_IMETHOD WillRemoveAttribute(nsIAtom *name); \
  171.   NS_IMETHOD AttributeRemoved(nsIAtom *name); \
  172.   NS_IMETHOD BeginAddingChildren(void); \
  173.   NS_IMETHOD DoneAddingChildren(void); \
  174.   NS_IMETHOD HandleDefault(nsIDOMEvent *aEvent, PRBool *_retval); \
  175.   NS_IMETHOD CloneState(nsIDOMElement *aElement); 
  176.  
  177. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  178. #define NS_FORWARD_NSIXTFELEMENT(_to) \
  179.   NS_IMETHOD OnDestroyed(void) { return _to OnDestroyed(); } \
  180.   NS_IMETHOD GetElementType(PRUint32 *aElementType) { return _to GetElementType(aElementType); } \
  181.   NS_IMETHOD GetIsAttributeHandler(PRBool *aIsAttributeHandler) { return _to GetIsAttributeHandler(aIsAttributeHandler); } \
  182.   NS_IMETHOD GetScriptingInterfaces(PRUint32 *count, nsIID * **array) { return _to GetScriptingInterfaces(count, array); } \
  183.   NS_IMETHOD WillChangeDocument(nsIDOMDocument *newDoc) { return _to WillChangeDocument(newDoc); } \
  184.   NS_IMETHOD DocumentChanged(nsIDOMDocument *newDoc) { return _to DocumentChanged(newDoc); } \
  185.   NS_IMETHOD WillChangeParent(nsIDOMElement *newParent) { return _to WillChangeParent(newParent); } \
  186.   NS_IMETHOD ParentChanged(nsIDOMElement *newParent) { return _to ParentChanged(newParent); } \
  187.   NS_IMETHOD WillInsertChild(nsIDOMNode *child, PRUint32 index) { return _to WillInsertChild(child, index); } \
  188.   NS_IMETHOD ChildInserted(nsIDOMNode *child, PRUint32 index) { return _to ChildInserted(child, index); } \
  189.   NS_IMETHOD WillAppendChild(nsIDOMNode *child) { return _to WillAppendChild(child); } \
  190.   NS_IMETHOD ChildAppended(nsIDOMNode *child) { return _to ChildAppended(child); } \
  191.   NS_IMETHOD WillRemoveChild(PRUint32 index) { return _to WillRemoveChild(index); } \
  192.   NS_IMETHOD ChildRemoved(PRUint32 index) { return _to ChildRemoved(index); } \
  193.   NS_IMETHOD WillSetAttribute(nsIAtom *name, const nsAString & newValue) { return _to WillSetAttribute(name, newValue); } \
  194.   NS_IMETHOD AttributeSet(nsIAtom *name, const nsAString & newValue) { return _to AttributeSet(name, newValue); } \
  195.   NS_IMETHOD WillRemoveAttribute(nsIAtom *name) { return _to WillRemoveAttribute(name); } \
  196.   NS_IMETHOD AttributeRemoved(nsIAtom *name) { return _to AttributeRemoved(name); } \
  197.   NS_IMETHOD BeginAddingChildren(void) { return _to BeginAddingChildren(); } \
  198.   NS_IMETHOD DoneAddingChildren(void) { return _to DoneAddingChildren(); } \
  199.   NS_IMETHOD HandleDefault(nsIDOMEvent *aEvent, PRBool *_retval) { return _to HandleDefault(aEvent, _retval); } \
  200.   NS_IMETHOD CloneState(nsIDOMElement *aElement) { return _to CloneState(aElement); } 
  201.  
  202. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  203. #define NS_FORWARD_SAFE_NSIXTFELEMENT(_to) \
  204.   NS_IMETHOD OnDestroyed(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDestroyed(); } \
  205.   NS_IMETHOD GetElementType(PRUint32 *aElementType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementType(aElementType); } \
  206.   NS_IMETHOD GetIsAttributeHandler(PRBool *aIsAttributeHandler) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAttributeHandler(aIsAttributeHandler); } \
  207.   NS_IMETHOD GetScriptingInterfaces(PRUint32 *count, nsIID * **array) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptingInterfaces(count, array); } \
  208.   NS_IMETHOD WillChangeDocument(nsIDOMDocument *newDoc) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillChangeDocument(newDoc); } \
  209.   NS_IMETHOD DocumentChanged(nsIDOMDocument *newDoc) { return !_to ? NS_ERROR_NULL_POINTER : _to->DocumentChanged(newDoc); } \
  210.   NS_IMETHOD WillChangeParent(nsIDOMElement *newParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillChangeParent(newParent); } \
  211.   NS_IMETHOD ParentChanged(nsIDOMElement *newParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->ParentChanged(newParent); } \
  212.   NS_IMETHOD WillInsertChild(nsIDOMNode *child, PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillInsertChild(child, index); } \
  213.   NS_IMETHOD ChildInserted(nsIDOMNode *child, PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChildInserted(child, index); } \
  214.   NS_IMETHOD WillAppendChild(nsIDOMNode *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillAppendChild(child); } \
  215.   NS_IMETHOD ChildAppended(nsIDOMNode *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChildAppended(child); } \
  216.   NS_IMETHOD WillRemoveChild(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillRemoveChild(index); } \
  217.   NS_IMETHOD ChildRemoved(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChildRemoved(index); } \
  218.   NS_IMETHOD WillSetAttribute(nsIAtom *name, const nsAString & newValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillSetAttribute(name, newValue); } \
  219.   NS_IMETHOD AttributeSet(nsIAtom *name, const nsAString & newValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->AttributeSet(name, newValue); } \
  220.   NS_IMETHOD WillRemoveAttribute(nsIAtom *name) { return !_to ? NS_ERROR_NULL_POINTER : _to->WillRemoveAttribute(name); } \
  221.   NS_IMETHOD AttributeRemoved(nsIAtom *name) { return !_to ? NS_ERROR_NULL_POINTER : _to->AttributeRemoved(name); } \
  222.   NS_IMETHOD BeginAddingChildren(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginAddingChildren(); } \
  223.   NS_IMETHOD DoneAddingChildren(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoneAddingChildren(); } \
  224.   NS_IMETHOD HandleDefault(nsIDOMEvent *aEvent, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleDefault(aEvent, _retval); } \
  225.   NS_IMETHOD CloneState(nsIDOMElement *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneState(aElement); } 
  226.  
  227. #if 0
  228. /* Use the code below as a template for the implementation class for this interface. */
  229.  
  230. /* Header file */
  231. class nsXTFElement : public nsIXTFElement
  232. {
  233. public:
  234.   NS_DECL_ISUPPORTS
  235.   NS_DECL_NSIXTFELEMENT
  236.  
  237.   nsXTFElement();
  238.  
  239. private:
  240.   ~nsXTFElement();
  241.  
  242. protected:
  243.   /* additional members */
  244. };
  245.  
  246. /* Implementation file */
  247. NS_IMPL_ISUPPORTS1(nsXTFElement, nsIXTFElement)
  248.  
  249. nsXTFElement::nsXTFElement()
  250. {
  251.   /* member initializers and constructor code */
  252. }
  253.  
  254. nsXTFElement::~nsXTFElement()
  255. {
  256.   /* destructor code */
  257. }
  258.  
  259. /* void onDestroyed (); */
  260. NS_IMETHODIMP nsXTFElement::OnDestroyed()
  261. {
  262.     return NS_ERROR_NOT_IMPLEMENTED;
  263. }
  264.  
  265. /* readonly attribute unsigned long elementType; */
  266. NS_IMETHODIMP nsXTFElement::GetElementType(PRUint32 *aElementType)
  267. {
  268.     return NS_ERROR_NOT_IMPLEMENTED;
  269. }
  270.  
  271. /* readonly attribute boolean isAttributeHandler; */
  272. NS_IMETHODIMP nsXTFElement::GetIsAttributeHandler(PRBool *aIsAttributeHandler)
  273. {
  274.     return NS_ERROR_NOT_IMPLEMENTED;
  275. }
  276.  
  277. /* void getScriptingInterfaces (out unsigned long count, [array, size_is (count), retval] out nsIIDPtr array); */
  278. NS_IMETHODIMP nsXTFElement::GetScriptingInterfaces(PRUint32 *count, nsIID * **array)
  279. {
  280.     return NS_ERROR_NOT_IMPLEMENTED;
  281. }
  282.  
  283. /* void willChangeDocument (in nsIDOMDocument newDoc); */
  284. NS_IMETHODIMP nsXTFElement::WillChangeDocument(nsIDOMDocument *newDoc)
  285. {
  286.     return NS_ERROR_NOT_IMPLEMENTED;
  287. }
  288.  
  289. /* void documentChanged (in nsIDOMDocument newDoc); */
  290. NS_IMETHODIMP nsXTFElement::DocumentChanged(nsIDOMDocument *newDoc)
  291. {
  292.     return NS_ERROR_NOT_IMPLEMENTED;
  293. }
  294.  
  295. /* void willChangeParent (in nsIDOMElement newParent); */
  296. NS_IMETHODIMP nsXTFElement::WillChangeParent(nsIDOMElement *newParent)
  297. {
  298.     return NS_ERROR_NOT_IMPLEMENTED;
  299. }
  300.  
  301. /* void parentChanged (in nsIDOMElement newParent); */
  302. NS_IMETHODIMP nsXTFElement::ParentChanged(nsIDOMElement *newParent)
  303. {
  304.     return NS_ERROR_NOT_IMPLEMENTED;
  305. }
  306.  
  307. /* void willInsertChild (in nsIDOMNode child, in unsigned long index); */
  308. NS_IMETHODIMP nsXTFElement::WillInsertChild(nsIDOMNode *child, PRUint32 index)
  309. {
  310.     return NS_ERROR_NOT_IMPLEMENTED;
  311. }
  312.  
  313. /* void childInserted (in nsIDOMNode child, in unsigned long index); */
  314. NS_IMETHODIMP nsXTFElement::ChildInserted(nsIDOMNode *child, PRUint32 index)
  315. {
  316.     return NS_ERROR_NOT_IMPLEMENTED;
  317. }
  318.  
  319. /* void willAppendChild (in nsIDOMNode child); */
  320. NS_IMETHODIMP nsXTFElement::WillAppendChild(nsIDOMNode *child)
  321. {
  322.     return NS_ERROR_NOT_IMPLEMENTED;
  323. }
  324.  
  325. /* void childAppended (in nsIDOMNode child); */
  326. NS_IMETHODIMP nsXTFElement::ChildAppended(nsIDOMNode *child)
  327. {
  328.     return NS_ERROR_NOT_IMPLEMENTED;
  329. }
  330.  
  331. /* void willRemoveChild (in unsigned long index); */
  332. NS_IMETHODIMP nsXTFElement::WillRemoveChild(PRUint32 index)
  333. {
  334.     return NS_ERROR_NOT_IMPLEMENTED;
  335. }
  336.  
  337. /* void childRemoved (in unsigned long index); */
  338. NS_IMETHODIMP nsXTFElement::ChildRemoved(PRUint32 index)
  339. {
  340.     return NS_ERROR_NOT_IMPLEMENTED;
  341. }
  342.  
  343. /* void willSetAttribute (in nsIAtom name, in AString newValue); */
  344. NS_IMETHODIMP nsXTFElement::WillSetAttribute(nsIAtom *name, const nsAString & newValue)
  345. {
  346.     return NS_ERROR_NOT_IMPLEMENTED;
  347. }
  348.  
  349. /* void attributeSet (in nsIAtom name, in AString newValue); */
  350. NS_IMETHODIMP nsXTFElement::AttributeSet(nsIAtom *name, const nsAString & newValue)
  351. {
  352.     return NS_ERROR_NOT_IMPLEMENTED;
  353. }
  354.  
  355. /* void willRemoveAttribute (in nsIAtom name); */
  356. NS_IMETHODIMP nsXTFElement::WillRemoveAttribute(nsIAtom *name)
  357. {
  358.     return NS_ERROR_NOT_IMPLEMENTED;
  359. }
  360.  
  361. /* void attributeRemoved (in nsIAtom name); */
  362. NS_IMETHODIMP nsXTFElement::AttributeRemoved(nsIAtom *name)
  363. {
  364.     return NS_ERROR_NOT_IMPLEMENTED;
  365. }
  366.  
  367. /* void beginAddingChildren (); */
  368. NS_IMETHODIMP nsXTFElement::BeginAddingChildren()
  369. {
  370.     return NS_ERROR_NOT_IMPLEMENTED;
  371. }
  372.  
  373. /* void doneAddingChildren (); */
  374. NS_IMETHODIMP nsXTFElement::DoneAddingChildren()
  375. {
  376.     return NS_ERROR_NOT_IMPLEMENTED;
  377. }
  378.  
  379. /* boolean handleDefault (in nsIDOMEvent aEvent); */
  380. NS_IMETHODIMP nsXTFElement::HandleDefault(nsIDOMEvent *aEvent, PRBool *_retval)
  381. {
  382.     return NS_ERROR_NOT_IMPLEMENTED;
  383. }
  384.  
  385. /* void cloneState (in nsIDOMElement aElement); */
  386. NS_IMETHODIMP nsXTFElement::CloneState(nsIDOMElement *aElement)
  387. {
  388.     return NS_ERROR_NOT_IMPLEMENTED;
  389. }
  390.  
  391. /* End of implementation class template. */
  392. #endif
  393.  
  394.  
  395. #endif /* __gen_nsIXTFElement_h__ */
  396.